import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { UserSongFavorService } from './user_song_favor.service';
import { CreateUserSongFavorDto } from './dto/create-user_song_favor.dto';
import { UpdateUserSongFavorDto } from './dto/update-user_song_favor.dto';

@Controller('user-song-favor')
export class UserSongFavorController {
  constructor(private readonly userSongFavorService: UserSongFavorService) {}

  @Post()
  create(@Body() createUserSongFavorDto: CreateUserSongFavorDto) {
    return this.userSongFavorService.create(createUserSongFavorDto);
  }

  @Get()
  findAll() {
    return this.userSongFavorService.findAll();
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.userSongFavorService.findOne(+id);
  }

  @Patch(':id')
  update(@Param('id') id: string, @Body() updateUserSongFavorDto: UpdateUserSongFavorDto) {
    return this.userSongFavorService.update(+id, updateUserSongFavorDto);
  }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.userSongFavorService.remove(+id);
  }
}
